package com.qing.eduservice.client;

import com.qing.eduservice.entity.vo.CourseInfoVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @ClassName Yjx
 * @Description TODO
 * @date 2022/9/18 23:54
 * @Version 1.0
 */
@FeignClient("service-edu")
@Component
public interface EduClient {
    //根据课程id查询课程信息
    @GetMapping("/getDto/{courseId}")
    public CourseInfoVo getCourseInfoDto(@PathVariable String courseId);
}
